﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using BaseEntities;
using DataAccess;

namespace BussinessLogic
{
    public class LogBus
    {
        AccountDAO AccDAO = new AccountDAO();
        public void WriteLog(Log log)
        {
            SqlParameter Param1 = new SqlParameter("@LogTypeID", log.LogTypeID);
            SqlParameter Param2 = new SqlParameter("@ATMID", log.ATMID);
            SqlParameter Param3 = new SqlParameter("@CardNo", log.CardNo);
            SqlParameter Param4 = new SqlParameter("@LogDate", log.LogDate);
            SqlParameter Param5 = new SqlParameter("@Amount", log.Amount);
            SqlParameter Param6 = new SqlParameter("@Details", log.Details);
            AccDAO.UpdateData("SP_AddLog", Param1, Param2, Param3, Param4, Param5, Param6);
        }
    }
}
